<form action="index.php" method="post" name="adminForm" id="adminForm">
<script type="text/javascript">
jQuery(document).ready(
  function(){
    jQuery("#adminForm").validate({
      rules:  {
        position: "required",
      }
    });
  }
);
</script>
  <fieldset class="adminform">
    <legend>Details</legend>
      <?
        $id       = 0;
        $position    = null;
        $description = null;
        $published    = true;
        
        if(isset($this->position)){
          $id       = $this->position->id;
          $position    = $this->position->position;
          $description = $this->position->description;
          $published    = $this->position->published;
        }
      ?>
            <table class="admintable">
                <tr>
                    <td class="key">Position</td>
          <td>
            <input type="text" name="position" id="position" value="<?= $position ?>" />
          </td>
        </tr>
                <tr>
                    <td class="key">Description</td>
          <td>
            <?= $this->editor->display( 'description', $description, '100%', '150', '40', '5' ) ?>
          </td>
        </tr>      
        <tr>
          <td class="key">Published</td>
          <td>
            <?= JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $published); ?>
          </td>
        </tr>
             </table>
       </fieldset>
       <input type="hidden" name="option" value="<?= JRequest::getVar( 'option' );?>"/>
     <input type="hidden" name="c" value="<?= JRequest::getVar('c', 'position'); ?>" />
       <input type="hidden" name="id" value="<?= $id; ?>"/>
       <input type="hidden" name="task" value=""/>
</form>